from api.ihrm_login_api import IHRMLoginAPI


class TokenUtil:

    # 封装一个获取token的方法
    @classmethod
    def get_token_util(cls):
        body = {"mobile": "13800000002", "password": "123456"}
        resp_token_data = IHRMLoginAPI.login_api(body).json().get("data")
        return resp_token_data

if __name__ == '__main__':
    print(TokenUtil.get_token_util())